< previous page page_255 next page >

Page 255
0255-01.jpg
Figure 12.7
The Menu Editor shows the
menu for the sample program.
After exiting the Menu Editor, you need to add code to each menu item to make it perform a task. The code for each of these items is contained in Listing 12.2.
Listing 12.2 LISTVIEW.ZIPUsing Menu Click events for the Sample Project
Private Sub mnuDetail_Click()
    lvMain.View = lvwReport
End Sub

Private Sub mnuLarge_Click()
    lvMain.View = lvwIcon
End Sub

Private Sub mnuList_Click()
    lvMain.View = lvwList
End Sub

Private Sub mnuSmall_Click()
    lvMain.View = lvwSmallIcon
End Sub
You now can run the program and use the menu to display each different view. Figure 12.8 shows the Large Icon view.
0255-02.jpg
Figure 12.8
Whereas the Report view
displays detailed information with column
headings, the Large Icon view simply
shows a picture above the item text.

 
< previous page page_255 next page >